package com.healthy.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.medical.mapper.BookingSlotsMapper;
import com.healthy.medical.domain.BookingSlots;
import com.healthy.medical.service.IBookingSlotsService;

/**
 * 体检预约维护Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class BookingSlotsServiceImpl implements IBookingSlotsService 
{
    @Autowired
    private BookingSlotsMapper bookingSlotsMapper;

    /**
     * 查询体检预约维护
     * 
     * @param id 体检预约维护主键
     * @return 体检预约维护
     */
    @Override
    public BookingSlots selectBookingSlotsById(Long id)
    {
        return bookingSlotsMapper.selectBookingSlotsById(id);
    }

    /**
     * 查询体检预约维护列表
     * 
     * @param bookingSlots 体检预约维护
     * @return 体检预约维护
     */
    @Override
    public List<BookingSlots> selectBookingSlotsList(BookingSlots bookingSlots)
    {
        return bookingSlotsMapper.selectBookingSlotsList(bookingSlots);
    }

    /**
     * 新增体检预约维护
     * 
     * @param bookingSlots 体检预约维护
     * @return 结果
     */
    @Override
    public int insertBookingSlots(BookingSlots bookingSlots)
    {
        return bookingSlotsMapper.insertBookingSlots(bookingSlots);
    }

    /**
     * 修改体检预约维护
     * 
     * @param bookingSlots 体检预约维护
     * @return 结果
     */
    @Override
    public int updateBookingSlots(BookingSlots bookingSlots)
    {
        return bookingSlotsMapper.updateBookingSlots(bookingSlots);
    }

    /**
     * 批量删除体检预约维护
     * 
     * @param ids 需要删除的体检预约维护主键
     * @return 结果
     */
    @Override
    public int deleteBookingSlotsByIds(Long[] ids)
    {
        return bookingSlotsMapper.deleteBookingSlotsByIds(ids);
    }

    /**
     * 删除体检预约维护信息
     * 
     * @param id 体检预约维护主键
     * @return 结果
     */
    @Override
    public int deleteBookingSlotsById(Long id)
    {
        return bookingSlotsMapper.deleteBookingSlotsById(id);
    }
}
